{%include file="m.index.header.tpl.php"%}
<!--主体部分-->
<div class="container" style="margin-top:70px;">
  <div class="row" style="margin-top:10px;">
  <form name="myform" action="" method="get">	
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <div class="col-sm-10 text-center">
          <p> <a type="button" class="btn btn-default" href="index.php?a=personnel.list&appoint_type=1&appoint_staff={%$appoint_staff%}">部门任命列表&nbsp;&nbsp;&nbsp;</a> 
		  <a type="button" class="btn btn-primary" href="index.php?a=personnel.list&appoint_type=3&appoint_staff={%$appoint_staff%}">年级长任命列表</a></p>
          <p> <a type="button" class="btn btn-default" href="index.php?a=personnel.list&appoint_type=4&appoint_staff={%$appoint_staff%}">班主任任命列表</a> <a type="button" href="index.php?a=personnel.list&appoint_type=2&appoint_staff={%$appoint_staff%}"class="btn btn-default">教研组任命列表</a></p>
          <p> <a type="button" class="btn btn-default" href="index.php?a=personnel.list&appoint_type=5&appoint_staff={%$appoint_staff%}">备课组任命列表</a> <a type="button" href="index.php?a=personnel.list&appoint_type=6&appoint_staff={%$appoint_staff%}" class="btn btn-default">学科组任命列表</a></p>
        </div>
      </div>
    </div>
  </div>
  <div class="row" style="margin-right:10%;">
  </div>
  <!--row  end-->
  
  <div class="row" style="margin-top:10px;">
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">年级:</label>
        <div class="col-sm-10">
          <select class="form-control" name="grade_id" id="grade_id">
			<option value=""> 全部</option>
			{%foreach from=$grade_lists key=key item=value%}
			<option value="{%$value.grade_id%}"{%if $value.grade_id==$grade_id%}selected{%/if%}>{%$value.grade_name%}</option>
			{%/foreach%}
		  </select> 
        </div>
      </div>
    </div>
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">职务：</label>
        <div class="col-sm-10">
          <select class="form-control" name="position_type">
			<option value="">全部</option>
			<option value="1"{%if $position_type == 1%}selected{%/if%}>级长</option>
			<option value="2"{%if $position_type == 2%}selected{%/if%}>副级长</option> 
		   </select>
        </div>
      </div>
    </div>
    <div class="col-sm-12 distance">
      <div class="form-group">
        <label for="" class="col-sm-2 control-label">人员:</label>
        <div class="col-sm-10">
           <input type="text" class="form-control" value="{%$staff_name%}"  name="staff_name">
        </div>
      </div>
    </div>
    <div class="col-xs-12 distance">
      <div class="form-group  text-center" style="padding-top:0px;">
	    <input type="hidden" name="a" value="personnel.list">
	    <input type="hidden" name="appoint_staff" value="{%$appoint_staff%}">
	    <input type="hidden" name="appoint_type" value="{%$appoint_type%}">
        <button type="submit" class="btn btn-success absolutely ">搜索</button>
      </div>
    </div>
  </div>
  </form>	
  <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
  {%foreach from=$appoint_lists key=key item=value%}
    <table class="table table-striped table-bordered text-center"  id="middles">
      <tr>
        <td>部门名称</td>
        <td colspan="2">{%$value.grade_name%}</td>
      </tr>
      <tr>
        <td>职务</td>
        <td colspan="2">{%$value.position_type%}</td>
      </tr>
      <tr>
        <td>姓名</td>
        <td colspan="2">{%$value.staff_name%}</td>
      </tr>
    </table>
  {%/foreach%}  
  </div>
</div>
<!--container  end--> 
<!--主体部分  end--> 
{%include file="m.index.footer.tpl.php"%} 